package com.quick.calcu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.quick.calcu.entity.WrongQuestion;

import java.time.LocalDate;
import java.util.List;

public interface WrongQuestionService extends IService<WrongQuestion> {
    List<WrongQuestion> getByStudentId(Long studentId);

    /**
     * 查询错题并关联学生和答题记录信息
     */
    WrongQuestion getWithDetails(Long wrongId);

    boolean deleteByStudentIdAndTime(Long studentId, LocalDate startTime, LocalDate endTime);
}